<div class="widget_box">
    <div class="block">    
        <div class="block-title"><h2>Tags</h2></div>    
	<div class="block-content"> 

<?php

foreach($tags as $tag=>$weight)
{
        $link=CHtml::link(CHtml::encode($tag), array('post/index','tag'=>$tag));
        echo CHtml::tag('span', array(
                'class'=>'tag',
                'style'=>"font-size:{$weight}pt",), $link)."\n";
}
?>
</div></div></div>
